<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title><?php echo ($system['name']); ?>-后台管理</title>
    <meta name="keywords" content="<?php echo ($system['keyword']); ?>" />
    <meta name="description" content="<?php echo ($system['description']); ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- 基本样式 -->
    <!-- basic styles -->
    <link href="/Public/ace/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="/Public/ace/assets/css/font-awesome.min.css" />
    <!--[if IE 7]>
    <link rel="stylesheet" href="/Public/ace/assets/css/font-awesome-ie7.min.css" />
    <![endif]-->
    <!-- page specific plugin styles -->
    <!-- fonts -->
    <!--<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400,300" />-->
    <!--<link rel="stylesheet" href="/Public/ace/assets/font/font.css" />-->
    <!-- ace styles -->
    <link rel="stylesheet" href="/Public/ace/assets/css/ace.min.css" />
    <link rel="stylesheet" href="/Public/ace/assets/css/ace-rtl.min.css" />
    <link rel="stylesheet" href="/Public/ace/assets/css/ace-skins.min.css" />
    <link rel="stylesheet" href="/Public/font-awesome-4.7.0/css/font-awesome.min.css">
    <!--[if lte IE 8]>
    <link rel="stylesheet" href="/Public/ace/assets/css/ace-ie.min.css" />
    <![endif]-->
    <!-- inline styles related to this page -->
    <!-- ace settings handler -->
    <script src="/Public/ace/assets/js/ace-extra.min.js"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="/Public/ace/assets/js/html5shiv.js"></script>
    <script src="/Public/ace/assets/js/respond.min.js"></script>
    <![endif]-->
    <!--[if !IE]>
    -->
    <script src="/Public/ace/assets/js/jquery-2.0.3.min.js"></script>
    <!-- <![endif]-->
    <!--[if IE]>
    <script src="/Public/ace/assets/js/jquery-1.10.2.min.js"></script>
    <![endif]-->
    <!--[if !IE]>
    -->
    <script type="text/javascript">
            window.jQuery || document.write("<script src='/Public/ace/assets/js/jquery-2.0.3.min.js'>"+"<"+"script>");</script>
    <!-- <![endif]-->
    <!--[if IE]>
    <script type="text/javascript">
         window.jQuery || document.write("<script src='/Public/ace/assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");</script>
    <![endif]-->
    <!-- 基本样式结束 -->
    <!-- 扩展使用 -->
    <script src="/Public/ace/assets/js/bootstrap.min.js"></script>
    <link href="/Public/ace/admin/css/admin.css" rel="stylesheet" />
    <script type="text/javascript" src="/Public/UEditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/Public/UEditor/ueditor.all.js"></script>
    <script type="text/javascript" src="/Public/My97DatePicker/WdatePicker.js"></script>
    <!-- 扩展使用结束 -->
</head>
<body>
    <input type="hidden" id="controller" value="/Admin/User" />
    <div class="navbar navbar-default" id="navbar">
        <script type="text/javascript">try{ace.settings.check('navbar' , 'fixed')}catch(e){}</script>
        <div class="navbar-container" id="navbar-container">
            <div class="navbar-header pull-left">
                <a href="/Admin" class="navbar-brand">
                    <small> <i class="icon-leaf"></i>
                        <?php echo ($system['name']); ?>-后台管理
                    </small>
                </a>
                <!-- /.brand --> </div>
            <!-- /.navbar-header -->
            <div class="navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">
                    <li class="light-blue">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                            <img class="nav-user-photo" src="/Public/ace/assets/avatars/admin.png" alt="Jason's Photo" />
                            <span class="user-info">
                                <small>欢迎光临,</small>
                                <?=session('管理员')['username'];?></span> <i class="icon-caret-down"></i>
                        </a>
                        <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                            <li>
                            <a href="<?php echo U('User/update', ['id'=>session('管理员')['id']]);?>">
                                    <i class="icon-user"></i>
                                    个人信息
                                </a>
                            </li>
                            <li>
                                <a href="/Admin/System/update/id/1">
                                    <i class="icon-cog"></i>
                                    系统设置
                                </a>
                            </li>

                            <li class="divider"></li>
                            <li>
                                <a href="/Admin/Index/logout" onclick="return confirm('是否确定要注销?');">
                                    <i class="icon-off"></i>
                                    退出
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <!-- /.ace-nav --> </div>
            <!-- /.navbar-header --> </div>
        <!-- /.container --> </div>

    <div class="main-container" id="main-container">
        <script type="text/javascript">
                try{ace.settings.check('main-container' , 'fixed')}catch(e){}
            </script>

        <div class="main-container-inner">
            <a class="menu-toggler" id="menu-toggler" href="#">
                <span class="menu-text"></span>
            </a>

            <div class="sidebar" id="sidebar">
                <script type="text/javascript">try{ace.settings.check('sidebar' , 'fixed')}catch(e){}</script>
                <ul class="nav nav-list">
                  <li <?php if(CONTROLLER_NAME == 'System'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-user"></i> <span class="menu-text">系统管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'index') AND (CONTROLLER_NAME == 'System')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('system/index');?>"> <i class="icon-double-angle-right"></i> 系统概况 </a> </li> <li <?php if((ACTION_NAME == 'update') AND (CONTROLLER_NAME == 'System')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('system/update', ['id'=>1]);?>"> <i class="icon-double-angle-right"></i> 系统设置 </a> </li><li <?php if((ACTION_NAME == 'game') AND (CONTROLLER_NAME == 'System')): ?>class="active"<?php endif; ?>i><a href="<?php echo U('system/game', ['id'=>1]);?>"> <i class="icon-double-angle-right"></i> 中奖管理 </a> </li><li <?php if((ACTION_NAME == 'gamelist') AND (CONTROLLER_NAME == 'System')): ?>class="active"<?php endif; ?>><a href="<?php echo U('system/gamelist');?>"> <i class="icon-double-angle-right"></i> 中奖列表 </a> </li></ul></li>
                  <li <?php if(CONTROLLER_NAME == 'GameLikes'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-list"></i> <span class="menu-text">点赞管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'GameLikes')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('GameLikes/list');?>"> <i class="icon-double-angle-right"></i> 点赞列表 </a> </li> <!--<li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'GameLikes')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('GameLikes/create');?>"> <i class="icon-double-angle-right"></i> 新增 </a> </li>--></ul> </li>
                  <li <?php if(CONTROLLER_NAME == 'GameVotes'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-list"></i> <span class="menu-text">投票管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'GameVotes')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('GameVotes/list');?>"> <i class="icon-double-angle-right"></i> 投票列表 </a> </li> <!--<li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'GameVotes')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('GameVotes/create');?>"> <i class="icon-double-angle-right"></i> 新增 </a> </li>--></ul> </li> 
                  <li <?php if(CONTROLLER_NAME == 'GameComments'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-list"></i> <span class="menu-text">评论管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'GameComments')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('GameComments/list');?>"> <i class="icon-double-angle-right"></i> 评论列表 </a> </li> <!--<li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'GameComments')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('GameComments/create');?>"> <i class="icon-double-angle-right"></i> 新增 </a> </li>--></ul> </li>
                <li <?php if(CONTROLLER_NAME == 'User'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-user"></i> <span class="menu-text">用户管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if(ACTION_NAME == 'list'): ?>class="active"<?php endif; ?>> <a href="<?php echo U('user/list');?>"> <i class="icon-double-angle-right"></i> 用户列表 </a> </li> <li <?php if(ACTION_NAME == 'create'): ?>class="active"<?php endif; ?>> <a href="<?php echo U('user/create');?>"> <i class="icon-double-angle-right"></i> 用户新增 </a> </li></ul> </li> 
                <li <?php if(CONTROLLER_NAME == 'UserGuider'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-star"></i> <span class="menu-text">导游管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'UserGuider')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('UserGuider/list');?>"> <i class="icon-double-angle-right"></i> 导游列表 </a> </li></ul> </li> 
                <li <?php if(CONTROLLER_NAME == 'UserClub'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-building"></i> <span class="menu-text">旅社管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'UserClub')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('UserClub/list');?>"> <i class="icon-double-angle-right"></i> 旅社列表 </a> </li> </ul> </li>
                <li <?php if(CONTROLLER_NAME == 'UserShop'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-beer"></i> <span class="menu-text">商家用户管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'UserShop')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('UserShop/list');?>"> <i class="icon-double-angle-right"></i> 商家用户列表 </a> </li> </ul> </li> 
                <li <?php if((CONTROLLER_NAME == 'Funding') OR (CONTROLLER_NAME == 'FundingMerge')): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-group"></i> <span class="menu-text">筹单管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Funding')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Funding/list');?>"> <i class="icon-double-angle-right"></i> 筹单列表 </a> </li> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'FundingMerge')): ?>class="active"<?php endif; ?>> <a href="#" onclick="alert('请从筹单列表选择筹单进入!');"> <i class="icon-double-angle-right"></i> 合单列表 </a> </li></ul> </li> 
                <li <?php if(CONTROLLER_NAME == 'CustomizedGuider'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-star"></i> <span class="menu-text">定制导游订单管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'CustomizedGuider')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('CustomizedGuider/list');?>"> <i class="icon-double-angle-right"></i> 定制导游订单列表 </a> </li></ul> </li>
                <li <?php if(CONTROLLER_NAME == 'CustomizedTravel'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-globe"></i> <span class="menu-text">定制旅游订单管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'CustomizedTravel')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('CustomizedTravel/list');?>"> <i class="icon-double-angle-right"></i> 定制旅游订单列表 </a> </li></ul> </li> 
                <li <?php if(CONTROLLER_NAME == 'Tourist'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-coffee"></i> <span class="menu-text">游客管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Tourist')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Tourist/list');?>"> <i class="icon-double-angle-right"></i> 游客列表 </a> </li> <li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'Tourist')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Tourist/create');?>"> <i class="icon-double-angle-right"></i> 游客新增 </a> </li></ul> </li> 
                <li <?php if(CONTROLLER_NAME == 'Ad'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-film"></i> <span class="menu-text">广告管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Ad')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Ad/list');?>"> <i class="icon-double-angle-right"></i> 广告列表 </a> </li> <li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'Ad')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Ad/create');?>"> <i class="icon-double-angle-right"></i> 广告新增 </a> </li></ul> </li>

               <li <?php if(CONTROLLER_NAME == 'Notice'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-bullhorn"></i> <span class="menu-text">通知管理 </span> 
                <?php $noticeCount = D('Notice')->where(['receive_user_id'=>1, 'state'=>'未读'])->count(); ?>
                <?php if($noticeCount != 0): ?><span class="label label-warning"><?php echo ($noticeCount); ?></span><?php endif; ?>
                <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Notice')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Notice/list');?>"> <i class="icon-double-angle-right"></i> 通知列表 </a> </li> <li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'Notice')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Notice/create');?>"> <i class="icon-double-angle-right"></i> 通知新增 </a> </li></ul> </li>
                <li <?php if(CONTROLLER_NAME == 'CallRecord'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-exchange"></i> <span class="menu-text">呼叫记录管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'CallRecord')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('CallRecord/list');?>"> <i class="icon-double-angle-right"></i> 呼叫记录列表 </a> </li> <li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'CallRecord')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('CallRecord/create');?>"> <i class="icon-double-angle-right"></i> 呼叫记录新增 </a> </li></ul> </li>
                <li <?php if(CONTROLLER_NAME == 'Contract'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-file"></i> <span class="menu-text">合同管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Contract')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Contract/list');?>"> <i class="icon-double-angle-right"></i> 合同列表 </a> </li> </ul> </li>
                <li <?php if(CONTROLLER_NAME == 'Insurance'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-food"></i> <span class="menu-text">保险管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Insurance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Insurance/list');?>"> <i class="icon-double-angle-right"></i> 保险列表 </a> </li> <li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'Insurance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Insurance/create');?>"> <i class="icon-double-angle-right"></i> 保险新增 </a> </li></ul> </li> 
                <li <?php if(CONTROLLER_NAME == 'InsuranceOrder'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-lemon"></i> <span class="menu-text">保险订单管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'InsuranceOrder')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('InsuranceOrder/list');?>"> <i class="icon-double-angle-right"></i> 保险订单列表 </a> </li> <li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'InsuranceOrder')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('InsuranceOrder/create');?>"> <i class="icon-double-angle-right"></i> 保险订单新增 </a> </li></ul> </li> 
                <li <?php if(CONTROLLER_NAME == 'Region'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-globe"></i> <span class="menu-text">地区管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Region')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Region/list');?>"> <i class="icon-double-angle-right"></i> 地区列表 </a> </li> <li <?php if((ACTION_NAME == 'create') AND (CONTROLLER_NAME == 'Region')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Region/create');?>"> <i class="icon-double-angle-right"></i> 地区新增 </a> </li></ul> </li>
                <li <?php if(CONTROLLER_NAME == 'Comment'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-envelope-alt"></i> <span class="menu-text">评价管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Comment')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Comment/list');?>"> <i class="icon-double-angle-right"></i> 评价列表 </a> </li></ul> </li> 
                <li <?php if(CONTROLLER_NAME == 'Complaint'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-envelope"></i> <span class="menu-text">投诉管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Complaint')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Complaint/list');?>"> <i class="icon-double-angle-right"></i> 投诉列表 </a> </li></ul> </li> 
                <li <?php if(CONTROLLER_NAME == 'Refund'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-exclamation-sign"></i> <span class="menu-text">退款管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Refund')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Refund/list');?>"> <i class="icon-double-angle-right"></i> 退款列表 </a> </li></ul> </li> 
                
                <li <?php if(CONTROLLER_NAME == 'Withdraw'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-yen"></i> <span class="menu-text">提现管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Withdraw')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Withdraw/list');?>"> <i class="icon-double-angle-right"></i> 提现列表 </a> </li> </ul> </li> 

                <li <?php if(CONTROLLER_NAME == 'Finance'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-exchange"></i> <span class="menu-text">财务管理 </span> <b class="arrow icon-angle-down"></b> </a> 
                  <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'Finance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Finance/list');?>"> <i class="icon-double-angle-right"></i> 财务列表 </a> </li> 
                   <li <?php if((ACTION_NAME == 'guiderinlist') AND (CONTROLLER_NAME == 'Finance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Finance/guiderinlist');?>"> <i class="icon-double-angle-right"></i> 导游收入列表 </a> </li> 
                   <li <?php if((ACTION_NAME == 'custominlist') AND (CONTROLLER_NAME == 'Finance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Finance/custominlist');?>"> <i class="icon-double-angle-right"></i> 订单收入列表 </a> </li> 
                   <li <?php if((ACTION_NAME == 'fundinginlist') AND (CONTROLLER_NAME == 'Finance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Finance/fundinginlist');?>"> <i class="icon-double-angle-right"></i> 筹单收入列表 </a> </li> 
                   <li <?php if((ACTION_NAME == 'guideroutlist') AND (CONTROLLER_NAME == 'Finance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Finance/guideroutlist');?>"> <i class="icon-double-angle-right"></i> 导游支出列表 </a> </li> 
                   <li <?php if((ACTION_NAME == 'customoutlist') AND (CONTROLLER_NAME == 'Finance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Finance/customoutlist');?>"> <i class="icon-double-angle-right"></i> 订单支出列表 </a> </li> 
                   <li <?php if((ACTION_NAME == 'fundingoutlist') AND (CONTROLLER_NAME == 'Finance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Finance/fundingoutlist');?>"> <i class="icon-double-angle-right"></i> 筹单支出列表 </a> </li> 
                   <li <?php if((ACTION_NAME == 'totallist') AND (CONTROLLER_NAME == 'Finance')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('Finance/totallist');?>"> <i class="icon-double-angle-right"></i> 财务报表总表 </a> 
                   </li>
                 </ul> 
                </li> 
                <li <?php if(CONTROLLER_NAME == 'CreditRecord'): ?>class="active"<?php endif; ?>> <a href="#" class="dropdown-toggle"> <i class="icon-credit-card"></i> <span class="menu-text">积分管理 </span> <b class="arrow icon-angle-down"></b> </a> <ul class="submenu"> <li <?php if((ACTION_NAME == 'list') AND (CONTROLLER_NAME == 'CreditRecord')): ?>class="active"<?php endif; ?>> <a href="<?php echo U('CreditRecord/list');?>"> <i class="icon-double-angle-right"></i> 积分列表 </a> </li> </ul> </li> 

            </ul>
            <!-- /.nav-list -->
            <div class="sidebar-collapse" id="sidebar-collapse">
                <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
            </div>
            <script type="text/javascript">try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}</script>
        </div>
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}</script>

                <ul class="breadcrumb">
                    <li>
                        <i class="<?php echo ($modelIcon); ?>"></i>
                        <a href="<?php echo U('list');?>"><?php echo ($modelName); ?>管理</a>
                    </li>
                    <li class="active"><?php echo ($modelName); echo ($crumbsMap[ACTION_NAME]); ?></li>
                </ul>
                <!-- .breadcrumb --> </div>
            <div class="page-content">
                <div class="page-header">
                    <h1><?php echo ($modelName); echo ($crumbsMap[ACTION_NAME]); ?></h1>
                </div>
                <!-- /.page-header -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->

    <div class="row">
        <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" style="padding-left: 10px;padding-right: 10px;">
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="username"> 用户名 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="用户名" id="username" name="username"  value="<?php echo ((isset($model['username']) && ($model['username'] !== ""))?($model['username']):''); ?>" validate-required="required:请填写用户名" <?php if(ACTION_NAME == update): ?>readonly<?php endif; ?>/>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div><div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="password"> 密码 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="password" class="width-100" placeholder="无需修改密码则不填写" id="password" name="password"  value=""  />
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="type"> 类型 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="type" id="type" class="width-100" >
                             <option value="用户" <?php if($model['type'] == '用户'): ?>selected<?php endif; ?> >用户</option>
                             <option value="商家" <?php if($model['type'] == '商家'): ?>selected<?php endif; ?> >商家</option>
                             <option value="导游" <?php if($model['type'] == '导游'): ?>selected<?php endif; ?> >导游</option>
                             <option value="旅社" <?php if($model['type'] == '旅社'): ?>selected<?php endif; ?> >旅社</option>
                             <option value="管理员" <?php if($model['type'] == '管理员'): ?>selected<?php endif; ?> >管理员</option>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="name"> 姓名 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="姓名" id="name" name="name"  value="<?php echo ((isset($model['name']) && ($model['name'] !== ""))?($model['name']):''); ?>" validate-required="required:请填写姓名" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="photo"> 头像 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="file" class="width-100" placeholder="头像" id="photo" name="photo"  value="<?php echo ((isset($model['photo']) && ($model['photo'] !== ""))?($model['photo']):''); ?>"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
            </div>
            <?php if(ACTION_NAME == update): ?><div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="imgShow"></label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                    	<img src="/Public/file/<?php echo ($model['photo']); ?>" width="120" height="60" />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
            </div><?php endif; ?>
            
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="location"> 所在地 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="所在地" id="location" name="location"  value="<?php echo ((isset($model['location']) && ($model['location'] !== ""))?($model['location']):''); ?>"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="id_number"> 身份证号 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="身份证号" id="id_number" name="id_number"  value="<?php echo ((isset($model['id_number']) && ($model['id_number'] !== ""))?($model['id_number']):''); ?>"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="birthday"> 生日 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="生日" id="birthday" name="birthday"  value="<?php echo (date('Y-m-d',(isset($model['birthday']) && ($model['birthday'] !== ""))?($model['birthday']):'')); ?>"  onClick="WdatePicker()" readonly=""/>
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="email"> 邮箱 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="邮箱" id="email" name="email"  value="<?php echo ((isset($model['email']) && ($model['email'] !== ""))?($model['email']):''); ?>"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="balance"> 余额 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="余额" id="balance" name="balance"  value="<?php echo ((isset($model['balance']) && ($model['balance'] !== ""))?($model['balance']):''); ?>"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="credit"> 积分 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="积分" id="credit" name="credit"  value="<?php echo ((isset($model['credit']) && ($model['credit'] !== ""))?($model['credit']):''); ?>"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="bank"> 银行 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="银行" id="bank" name="bank"  value="<?php echo ((isset($model['bank']) && ($model['bank'] !== ""))?($model['bank']):''); ?>"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="card_no"> 银行卡号 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <input type="text" class="width-100" placeholder="银行卡号" id="card_no" name="card_no"  value="<?php echo ((isset($model['card_no']) && ($model['card_no'] !== ""))?($model['card_no']):''); ?>"  />
                        <i class=""></i>
                        <small style="color:gray;"></small>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right" for="state"> 状态 </label>
                <div class="col-xs-12 col-sm-6">
                    <span class="block input-icon input-icon-right">
                        <select name="state" id="state" class="width-100" >
                             <option value="正常" <?php if($model['state'] == '正常'): ?>selected<?php endif; ?> >正常</option>
                             <option value="禁用" <?php if($model['state'] == '禁用'): ?>selected<?php endif; ?> >禁用</option>
                        </select>
                        <i class=""></i>
                    </span>
                </div>
                <div class="help-block col-xs-12 col-sm-reset inline" style="margin-bottom: 5px;"></div>
             </div>
            <div class="clearfix form-actions">
                <div style="margin-left: 25%;">
                    <button class="btn btn-info btn-sm" type="submit">
                        <i class="icon-ok bigger-110"></i>
                        提交
                    </button>
                    &nbsp; &nbsp; &nbsp;
                    <button class="btn btn-sm return" type="button">
                        <i class="icon-reply bigger-110"></i>
                        返回
                    </button>
                </div>
            </div>
        </form>
    </div>
                            <!-- PAGE CONTENT ENDS -->
                            </div><!-- /.col -->
                        </div><!-- /.row -->
                    </div><!-- /.page-content -->
                </div><!-- /.main-content -->
                <div class="ace-settings-container" id="ace-settings-container">
                    <div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
                        <i class="icon-cog bigger-150"></i>
                    </div>

                    <div class="ace-settings-box" id="ace-settings-box">
                        <div>
                            <div class="pull-left">
                                <select id="skin-colorpicker" class="hide">
                                    <option data-skin="default" value="#438EB9">#438EB9</option>
                                    <option data-skin="skin-1" value="#222A2D">#222A2D</option>
                                    <option data-skin="skin-2" value="#C6487E">#C6487E</option>
                                    <option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
                                </select>
                            </div>
                            <span>&nbsp; 选择皮肤</span>
                        </div>

                        <div>
                            <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-navbar" />
                            <label class="lbl" for="ace-settings-navbar"> 固定导航条</label>
                        </div>

                        <div>
                            <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
                            <label class="lbl" for="ace-settings-sidebar"> 固定滑动条</label>
                        </div>

                        <div>
                            <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
                            <label class="lbl" for="ace-settings-breadcrumbs">固定面包屑</label>
                        </div>

                        <div>
                            <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
                            <label class="lbl" for="ace-settings-rtl">切换到左边</label>
                        </div>

                        <div>
                            <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
                            <label class="lbl" for="ace-settings-add-container">
                                切换窄屏
                                <b></b>
                            </label>
                        </div>
                    </div>
                </div><!-- /#ace-settings-container -->
            </div><!-- /.main-container-inner -->

            <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
                <i class="icon-double-angle-up icon-only bigger-110"></i>
            </a>
        </div><!-- /.main-container -->

        <!-- basic scripts -->
        <script type="text/javascript">
            if("ontouchend" in document) document.write("<script src='/Public/ace/assets/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
        </script>
        <script src="/Public/ace/assets/js/typeahead-bs2.min.js"></script>
        <!-- page specific plugin scripts -->
        <!--[if lte IE 8]>
          <script src="/Public/ace/assets/js/excanvas.min.js"></script>
        <![endif]-->
        <script src="/Public/ace/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
        <script src="/Public/ace/assets/js/jquery.ui.touch-punch.min.js"></script>
        <script src="/Public/ace/assets/js/jquery.slimscroll.min.js"></script>
        <script src="/Public/ace/assets/js/jquery.easy-pie-chart.min.js"></script>
        <script src="/Public/ace/assets/js/jquery.sparkline.min.js"></script>
        <script src="/Public/ace/assets/js/flot/jquery.flot.min.js"></script>
        <script src="/Public/ace/assets/js/flot/jquery.flot.pie.min.js"></script>
        <script src="/Public/ace/assets/js/flot/jquery.flot.resize.min.js"></script>
        <!-- ace scripts -->
        <script src="/Public/ace/assets/js/ace-elements.min.js"></script>
        <script src="/Public/ace/assets/js/ace.min.js"></script>
        <script src="/Public/ace/admin/js/admin.js"></script>
</body>
</html>